

#include "parameters.hpp"
#ifdef OMP
#include <omp.h>
#endif
#include <cmath>

namespace UNAP {

namespace PARAMS {

#ifdef OMP
int numThreads = omp_get_max_threads();
int taskCutoffLevel =
    (omp_get_max_threads() == 1) ? 0 : std::log2(omp_get_max_threads()) + 3;
#else
int numThreads = 1;
int taskCutoffLevel = 0;
#endif
}  // namespace PARAMS

}  // namespace UNAP
